<template>
  <ze-home
    :news-types="newsTypes" :entrances="entrances"
    @click-left="navigateToTab('about')"
    @click-right="navigateToTab('recruit')"
  />
</template>

<script>
import ZeHome from '@/components/ze-home/index.vue'
import { CHANGE_GUEST_TAB, emitter } from '@/utils/emitter'

export default {
  components: { ZeHome },
  data() {
    return {
      entrances: [
        { title: '了解中恩', desc: '资讯·资质·发展', imgUrl: 'https://minio.zeweb.org.cn/ze-oa/b540046afe143a531066c37606377f381b5937fa54202f8b3dae1effcad32ff9.png' },
        { title: '加入我们', desc: '助力·服务·价值', imgUrl: 'https://minio.zeweb.org.cn/ze-oa/6564cf6a330943ba30a9d7dc4c1e7f367355a0fe8fc4060dcd266e6d99757d49.png' },
      ],
      newsTypes: [
        { label: '企业资讯', value: 1 },
        // { label: '合作案例', value: 2 },
      ],
    }
  },
  methods: {
    navigateToTab(name) {
      emitter.emit(CHANGE_GUEST_TAB, name)
    },
  },
}
</script>
